all files / table/ td.vue

18.18% Statements 2/11
0% Branches 0/6
0% Functions 0/3
14.29% Lines 1/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                             
//
//
//
//
//
//
 
export default {
  name: 'mu-td',
  props: {
    name: {
      type: String
    }
  },
  methods: {
    handleMouseEnter (event) {
      this.$emit('hover', event)
      if (this.$parent.handleCellHover) this.$parent.handleCellHover(event, this.name, this)
    },
    handleMouseLeave (event) {
      this.$emit('hoverExit', event)
      if (this.$parent.handleCellHoverExit) this.$parent.handleCellHoverExit(event, this.name, this)
    },
    handleClick (event) {
      this.$emit('click', event)
      if (this.$parent.handleCellClick) this.$parent.handleCellClick(event, this.name, this)
    }
  }
}